package ygw.study.designPatterns.bridge;

/**
 * <p>
 * 创建实现了 Shape 抽象类的实体类
 * </p>
 * <p>
 * Copyright:2021.All rights reserved.
 * </p>
 * <p>
 * Company:Zsoft
 * </p>
 * <p>
 * CreateDate:2021-05-22 21:42
 * </p>
 *
 * @author YuGongWen
 * @history Mender:YuGongWen；Date:2021-05-22 21:42；
 */
public class Circle extends Shape {
    private int x, y, radius;

    public Circle(int x, int y, int radius, DrawAPI drawAPI) {
        super(drawAPI);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    @Override
    public void draw() {
        drawAPI.drawCircle(radius, x, y);
    }
}